package recycle.common;

import io.vertx.ext.web.RoutingContext;

public class GlobalExceptionHandler {
    public static void handle(RoutingContext ctx) {
        Throwable error = ctx.failure();
        ctx.json(Result.error(error.getMessage()));

    }
}